package com.fdb.efp.nls.service.impl;

import com.fdb.basic.framework.core.base.FrameworkService;
import com.fdb.efp.nls.service.dao.PsdSxctrConfirmLogDao;
import com.fdb.efp.nls.service.domain.PsdSxctrConfirmLog;
import com.fdb.efp.nls.service.facade.PsdSxctrConfirmLogService;
import com.fdb.efp.nls.service.vo.PsdSxctrConfirmLogVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("psdSxctrConfirmLogService")
public class PsdSxctrConfirmLogServiceImpl implements PsdSxctrConfirmLogService, FrameworkService {

    private static Logger logger = LoggerFactory.getLogger(PsdSxctrConfirmLogServiceImpl.class);

    @Autowired
    private PsdSxctrConfirmLogDao psdSxctrConfirmLogDao;

    @Override
    public int insert(PsdSxctrConfirmLogVO psdSxctrConfirmLogVO) {
        return psdSxctrConfirmLogDao.insert(beanCopy(psdSxctrConfirmLogVO, new PsdSxctrConfirmLog()));
    }

    @Override
    public List<PsdSxctrConfirmLogVO> queryBySxApplySeq(String sxApplySeq) throws Exception {
        return (List<PsdSxctrConfirmLogVO>) beansCopy(psdSxctrConfirmLogDao.queryBySxApplySeq(sxApplySeq), PsdSxctrConfirmLogVO.class);
    }
}